export function createRouterGuards(router) {
	// router.beforeEach(async (to, form, next) => {
	// 	let isLogin = localStorage.getItem('isLogin')
	// 	console.log(to)
	// 	if (isLogin != 'true' && to.path != '/login') {
	// 		next('/login')
	// 	}
	// 	next()
	// })
	// 错误
	router.onError((error) => {
		console.log(error, '路由错误')
	})
}
